package com.apartment.own.domain.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

import java.io.Serializable;

/**
 * 账单支付方式
 * @author sxy
 */
public enum ModelOfPaymentEnum implements IEnum {
    /**
     * 现金
     */
    CASH(0, "现金", 1),
    /**
     * 转账
     */
    TRANSFER(1,"转账",0),
    /**
     * 微信
     */
    WEI_PAY(2, "微信", 0),
    /**
     * 支付宝
     */
    ALI_PAY(3, "支付宝", 0),
    /**
     * 刷卡
     */
    SLOT_CARD(4, "刷卡", 0),
    /**
     * 云闪付
     */
    CLOUD_FLASH_PAY(5, "云闪付", 0);

    private Integer id;
    private String name;
    private Integer select;

    ModelOfPaymentEnum(Integer id, String name, Integer select) {
        this.id = id;
        this.name = name;
        this.select = select;
    }

    public Integer getSelect() {
        return select;
    }

    public void setSelect(Integer select) {
        this.select = select;
    }

    @Override
    public Serializable getValue() {
        return this.id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    }
